package com.cjj.common.entity.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * @author baozhuangyu
 * @date 2021/5/25  14:49
 */
@Data
@Builder
public class OrganizationExcelRowData extends BaseRowModel {
    @ExcelProperty(value = "机构ID",index = 0)
    private Integer orgId;
    @ExcelProperty(value = "顶级合作机构名称",index = 1)
    private String name;
    @ExcelProperty(value = "机构类型",index = 2)
    private String type;
    @ExcelProperty(value = "全部子机构数",index = 3)
    private Integer subOrgNum;
    @ExcelProperty(value = "总账号数",index = 4)
    private Integer accountNum;
    @DateTimeFormat(value = "yyyy-MM-dd")
    @ExcelProperty(value = "合同开始日期",index = 5)
    private Date startTime;
    @DateTimeFormat(value = "yyyy-MM-dd")
    @ExcelProperty(value = "合同结束日期",index = 6)
    private Date endTime;
}
